package jude.java.money.provide.impl;

import java.util.List;

import jude.java.money.beans.Site;
import jude.java.money.beans.Site2;
import jude.java.money.provide.PagingProvider;
import jude.java.money.service.ScanService;
import jude.java.money.spring.Services;

public class ScanFtpPortProvider2 extends PagingProvider<Site2> {
	
	private ScanService scanService;
	
	public ScanFtpPortProvider2() {
		super(100, true);
		scanService = Services.getScanService();
	}

	@Override
	protected List<Site2> loadRecords(int pageSize, int pageIndex) {
		return scanService.listScanFtpPortSites2(pageSize, pageIndex);
	}

	@Override
	protected int getTotalCount() {
		return scanService.countSites(Site.STATUS_NEW);
	}

}
